import request from "@/utils/request";

export function getAllExamList(pageNum, pageSize, name, dataType) {
    return request({
        url: `/advice/exam/list?pageNum=${pageNum}&pageSize=${pageSize}&name=${name}&dataType=${dataType}`,
        method: 'get',
    })
}

export function addAdvice(advice) {
    return request({
        url: `/advice`,
        method: 'post',
        data: advice
    })
}
export function getAdviceByExam(id) {
    return request({
        url: `/advice/list/${id}`,
        method: 'get',
    })
}
